<?php ob_start(); ?>
<?php  
    //welcome.php  
   
	require_once '../../model/global.inc.php';  
   
	//check to see if they're logged in  
	if(!isset($_SESSION['logged_in'])) { 
            header("Location: view/login/login.php"); 
        } 
  
	//get the user object from the session 
	$user = unserialize($_SESSION['user']);         
  
?> 
   
<html> 
<head> 
    <title>Welcome <?php echo $user->username; ?></title> 
</head> 
<body> 
    Hey there, <?php echo $user->username; ?>. You've been registered and logged in. Welcome! <a href="logout.php">Log Out</a> | <a href="../../index.php">Return to Homepage</a>  
</body>  
</html>  
